<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 用户动态点赞表表
 * Class PostPraise
 *
 * @since 2.0
 *
 * @Entity(table="post_praise", pool="db2.pool")
 */
class PostPraise extends Model
{
    /**
     * 
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 用户id
     *
     * @Column(name="member_id", prop="memberId")
     *
     * @var int
     */
    private $memberId;

    /**
     * 点赞内容id
     *
     * @Column(name="post_id", prop="postId")
     *
     * @var int
     */
    private $postId;

    /**
     * 点赞时间
     *
     * @Column(name="created_at", prop="createdAt")
     *
     * @var int
     */
    private $createdAt;

    /**
     * 1：正常 0：删除
     *
     * @Column()
     *
     * @var int
     */
    private $status;

    /**
     * 动态发布人id
     *
     * @Column(name="post_publisher", prop="postPublisher")
     *
     * @var int
     */
    private $postPublisher;

    /**
     * 1:文本 2图片 3视频
     *
     * @Column(name="post_type", prop="postType")
     *
     * @var int
     */
    private $postType;

    /**
     * 1:android 2:ios 3:web
     *
     * @Column()
     *
     * @var int|null
     */
    private $device;

    /**
     * 机型
     *
     * @Column(name="phone_model", prop="phoneModel")
     *
     * @var string|null
     */
    private $phoneModel;


    /**
     * @param int $id
     *
     * @return void
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @param int $memberId
     *
     * @return void
     */
    public function setMemberId(int $memberId): void
    {
        $this->memberId = $memberId;
    }

    /**
     * @param int $postId
     *
     * @return void
     */
    public function setPostId(int $postId): void
    {
        $this->postId = $postId;
    }

    /**
     * @param int $createdAt
     *
     * @return void
     */
    public function setCreatedAt(int $createdAt): void
    {
        $this->createdAt = $createdAt;
    }

    /**
     * @param int $status
     *
     * @return void
     */
    public function setStatus(int $status): void
    {
        $this->status = $status;
    }

    /**
     * @param int $postPublisher
     *
     * @return void
     */
    public function setPostPublisher(int $postPublisher): void
    {
        $this->postPublisher = $postPublisher;
    }

    /**
     * @param int $postType
     *
     * @return void
     */
    public function setPostType(int $postType): void
    {
        $this->postType = $postType;
    }

    /**
     * @param int|null $device
     *
     * @return void
     */
    public function setDevice(?int $device): void
    {
        $this->device = $device;
    }

    /**
     * @param string|null $phoneModel
     *
     * @return void
     */
    public function setPhoneModel(?string $phoneModel): void
    {
        $this->phoneModel = $phoneModel;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getMemberId(): ?int
    {
        return $this->memberId;
    }

    /**
     * @return int
     */
    public function getPostId(): ?int
    {
        return $this->postId;
    }

    /**
     * @return int
     */
    public function getCreatedAt(): ?int
    {
        return $this->createdAt;
    }

    /**
     * @return int
     */
    public function getStatus(): ?int
    {
        return $this->status;
    }

    /**
     * @return int
     */
    public function getPostPublisher(): ?int
    {
        return $this->postPublisher;
    }

    /**
     * @return int
     */
    public function getPostType(): ?int
    {
        return $this->postType;
    }

    /**
     * @return int|null
     */
    public function getDevice(): ?int
    {
        return $this->device;
    }

    /**
     * @return string|null
     */
    public function getPhoneModel(): ?string
    {
        return $this->phoneModel;
    }

}
